package com.hp.ssmp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hp.ssmp.entity.TOrder;
import com.hp.ssmp.entity.dto.DaysOrderNumDto;
import com.hp.ssmp.entity.dto.TOrderDto;

import java.util.HashMap;
import java.util.List;

public interface OrderService extends IService<TOrder> {
    public boolean addOrder(TOrder order);
    public Page<TOrderDto> getOrderPage(Integer currentPage, Integer pageSize, Long orderid, String username, Long userid,Long orderstatus);
    public List<Integer> countOrderNum();
    public HashMap<String, List<Object>> countOrderPrice(Integer day);
    public HashMap<String, List<Object>> countOrderNum(Integer day);
}
